# -*- coding: utf-8 -*-

import mod.client.extraClientApi as clientApi

ScreenNode = clientApi.GetScreenNodeCls()
ViewBinder = clientApi.GetViewBinderCls()
ViewRequest = clientApi.GetViewViewRequestCls()


class Main(ScreenNode):
    def __init__(self, namespace, name, param):
        ScreenNode.__init__(self, namespace, name, param)
        pass

    def Create(self):
        print self.GetIsHud()
        pass

    def Update(self):
        pass

    def set_ice_armor(self, armor):
        base = self.GetBaseUIControl('/armor_icon/label')
        if not base:
            return
        control = base.asLabel()
        control.SetText(str(armor))
        pass
